<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;


/**
 * Class Problem
 * @package App\Models
 */
class Problem extends Model
{
    use Notifiable;

    const PROBLEM_ERROR = 1;

    const PROBLEM_RIGHT = 2;

    const PROBLEM_SCORE = 10;//每道題的得分

    const PROBLEM_NUM = 5;//每天可以答题的最大次数

    public $timestamps = true;
    protected $table = 'ty_problem';
    protected $primaryKey = 'pid';
    protected $fillable = ['sid','content','correct', 'type', 'score', 'status'];
    protected $dates = ['created_at', 'updated_at'];

}
